package com.sikaryofficial.backend.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sikaryofficial.backend.domain.dto.resp.StoreListDTO;
import com.sikaryofficial.backend.domain.entity.StoreEvaluate;
import org.apache.ibatis.annotations.Param;

/**
 * 店铺分享记录Mapper接口
 *
 * @author qinjinyuan
 * @date 2023-10-27
 */
public interface StoreEvaluateMapper extends BaseMapper<StoreEvaluate> {

    /**
     * 店铺被评价，需要更新店铺的更新时间
     *
     * @param sourceCode
     * @return
     */
    IPage<StoreListDTO> storeListBySource(Page<StoreListDTO> customerPage, @Param("sourceCode") String sourceCode, @Param("userId") Long userId
            , @Param("tenantId") Integer tenantId);
}
